// 属性相关操作
import request,{Method} from '@/libs/api.js'

// 获取普通属性分页
export function getAttrByPage (params) {
    return request({
      url: '/product/attr/getAttrByPage',
      method: Method.POST,
      data: params
    });
}

export function addAttr (params) {
  return request({
    url: '/product/attr/addAttr',
    method: Method.POST,
    data: params
  });
}

export function updateAttr (params) {
  return request({
    url: '/product/attr/updateAttr',
    method: Method.PUT,
    data: params
  });
}

export function deleteAttr (params) {
  return request({
    url: '/product/attr/deleteAttr',
    method: Method.DELETE,
    data: params
  });
}